<#include "../common/head.ftl">
<!--contaniner-->
<div id="box">
 
<!--studentinfo-->     
<div class="wrap">
  <!--head-->
  <ul id="tab_t">
  	 <#if dataFlag==0 || dataFlag==1>
  	 <li class="act"><a href="#">收到的简历</a></li>
  	 <#else>
  	 <li><a href="#">收到的简历</a></li>
  	 </#if>
  	 <#if dataFlag==2>
  	 <li class="act"><a href="#">收藏的简历</a></li>
  	 <#else>
  	 <li><a href="#">收藏的简历</a></li>
  	 </#if>
     <#if dataFlag==3>
  	 <li class="act"><a href="#">已下载的简历</a></li>
  	 <#else>
  	 <li><a href="#">已下载的简历</a></li>
  	 </#if>
  </ul>
  <!--/.head-->
  
  <!--tabcon-->
  <div id="tab_c">
  <!--01 收到的简历-->
  <#if dataFlag==0 || dataFlag==1>
    <h1>
  <#else>
  	<h1 class="hide">
  </#if>
    <#assign num1=received_list_result?number>
    <#if num1 gt 0>
    	<#if received_list??>
	  	<#list received_list as re>
	  	<div class="studentinfotip" onmouseover="ShowBorder(this)" onmouseout="HideBorder(this)" id="part01">
	      <p>
	     <a href="${base}/resume/r-${re.stu_resume_id}.html?internships=${re.internships}">
	     	<#if re.title?length gt 10 >
	     		<#assign tit=re.title?substring(0,10)>
	     		<#else>
	     		<#assign tit=re.title>
	     	</#if>
	      <span class="renewtip2">应聘：${tit}</span>
	      <span class="renew2 pt30">收到简历时间：<em>${re.add_time }</em></span>
	      </p>
	      <span class="studentinfotip_l">
	      <#if re.salary=="20001-60000">
	      <#assign tmp_salary="20001以上">
	      <#elseif re.salary="1000-20000">
	      <#assign tmp_salary="面议">
	      <#else>
	      <#assign tmp_salary=re.salary>
	      </#if>
	       <p class="pt30">${(re.full_name!="null")?string(re.full_name,"")}    ${(re.sex!="null")?string(re.sex,"")}    ${(re.job_type!="null")?string(re.job_type,"") }</p>
	       <p>${(re.birthday!="null"&&re.birthday!="0岁")?string(re.birthday,"")}    ${re.certificate_type}   ${(tmp_salary!="")?string(tmp_salary,"")}    ${(re.employment_type!="null")?string(re.employment_type,"")}</p>
	       <p>${(re.major_name!="null")?string(re.major_name,"")}    ${(re.school_name!="null")?string(re.school_name,"")}</p>
	      </span>
	      </a>
	      <span class="studentinfo_r_have2">
	      <#if re.head_img?? && re.head_img!="(null)" && re.head_img!="">
	     	 <img src="${re.head_img}" alt="用户头像" onerror="javascript:this.src='${base}/resources/images/usertx.png'" class="uertxhave"/>
	      <#else>
	         <img src="${base}/resources/images/usertx.png" alt="用户头像" class="uertxhave"/>
	      </#if>
	       <#assign itps=re.internships?number>
	       <#if itps==1>
	       <p class="img_circle"> 有工作经验</p>
	       <!-- <img src="${base}/resources/images/tipico.png" alt="有工作经验" class="txtop2"/> -->
	       </#if>
	       </span>
	     </div>
	     </#list>
	     </#if>
	    <#if rpage gt 1>
	    <button type="submit" class="pagebtn pagebtnother rprew">上一页</button>
	    <#else>
	    <!-- <button type="submit" class="pagebtn">上一页</button>-->
	    </#if>
	    
	    <#if num1 lt 20>
	    <!-- <button type="submit" class="pagebtn">下一页</button> -->
	    <#else>
	    <button type="submit" class="pagebtn pagebtnother rnext">下一页</button>
	    </#if>
    <#else>
    <div class="isnull" style="height: 90px;line-height: 90px;padding: 97px 400px;background-color: #f5f5f5;margin-top: 20px;">
            <p style="float:left"><img src="${base}/resources/images/tishi.png"></p>
            <span style="font-size: 16px;    margin-left: 40px;">该企业暂无投递简历</span>
    </div>
    </#if>
    </h1>
    
    <!--02 收藏的简历-->
    <#if dataFlag==2>
    <h1>
  	<#else>
  	<h1 class="hide">
  	</#if>
    <#assign num2=collection_list_result?number>
    <#if num2 gt 0>
    	<#if collection_list??>
	  	<#list collection_list as cl>
	  	<div id="part02" class="studentinfo" onmouseover="ShowBorder(this)" onmouseout="HideBorder(this)">
	      <a href="${base}/resume/r-${cl.stu_resume_id}.html?internships=${cl.internships}">
	      <span class="studentinfo_l">
	      <#if cl.salary=="20001-60000">
	      <#assign tmp_salary="20001以上">
	      <#elseif cl.salary="1000-20000">
	      <#assign tmp_salary="面议">
	      <#else>
	      <#assign tmp_salary=cl.salary>
	      </#if>
	       <p class="renew pt30">收藏简历时间：<em>${cl.add_time}</em></p>
	       <p class="pt30">${(cl.full_name!="null")?string(cl.full_name,"")}    ${(cl.sex!="null")?string(cl.sex,"")}    ${(cl.job_type!="null")?string(cl.job_type,"") }</p>
	       <p>${(cl.birthday!="null" && cl.birthday!="0岁")?string(cl.birthday,"")}    ${cl.certificate_type}   ${(tmp_salary!="")?string(tmp_salary,"面议")}    ${(cl.employment_type!="null")?string(cl.employment_type,"")}</p>
	       <p>${(cl.major_name!="null")?string(cl.major_name,"")}    ${(cl.school_name!="null")?string(cl.school_name,"")}</p>
	       </span>
	      </a>
	      <span class="studentinfo_r2">
	      <#if cl.head_img??  && cl.head_img!="" && cl.head_img!="(null)">
	       <img src="${cl.head_img}" alt="用户头像" onerror="javascript:this.src='${base}/resources/images/usertx.png'" class="uertx"/>
	       <#else>
	       <img src="${base}/resources/images/usertx.png" alt="用户头像" class="uertx"/>
	       </#if>
	      </span>
	    </div>
	    </#list>
	    </#if>
	    <#if cpage gt 1>
	    <button type="submit" class="pagebtn pagebtnother cprew">上一页</button>
	    <#else>
	    <!-- <button type="submit" class="pagebtn">上一页</button>-->
	    </#if>
	    
	    <#if num2 lt 20>
	    <!-- <button type="submit" class="pagebtn">下一页</button>-->
	    <#else>
	    <button type="submit" class="pagebtn pagebtnother cnext">下一页</button>
	    </#if>
    <#else>
    	<div class="isnull" style="height: 90px;line-height: 90px;padding: 97px 400px;background-color: #f5f5f5;margin-top: 20px;">
            <p style="float:left"><img src="${base}/resources/images/tishi.png"></p>
            <span style="font-size: 16px;    margin-left: 40px;">该企业暂无收藏简历</span>
    	</div>
    </#if>
    </h1>
    
    <!--03 已下载的简历-->
    <#if dataFlag==3>
    <h1>
  	<#else>
  	<h1 class="hide">
  	</#if>
    <#assign num3=download_list_result?number>
    <#if num3 gt 0>
	    <#if download_list??>
	  	<#list download_list as dl>
	    <div class="studentinfotip" id="part03" onmouseover="ShowBorder(this)" onmouseout="HideBorder(this)">
	      <p>
	      <a href="${base}/resume/r-${dl.stu_resume_id}.html?internships=${dl.internships}">
	      <#if dl.title?length gt 10 >
	     		<#assign tit=dl.title?substring(0,10)>
	     		<#else>
	     		<#assign tit=dl.title>
	      </#if>
	      <#if dl.salary=="20001-60000">
	      <#assign tmp_salary="20001以上">
	      <#elseif dl.salary="1000-20000">
	      <#assign tmp_salary="面议">
	      <#else>
	      <#assign tmp_salary=dl.salary>
	      </#if>
	      <span class="renew2 pt30" style="margin-left:0;" >下载简历时间：<em>${dl.add_time }</em></span>
	      </p>
	      <span class="studentinfotip_l">
	       <p class="pt30">${(dl.full_name!="null")?string(dl.full_name,"")}    ${(dl.sex!="null")?string(dl.sex,"")}    ${(dl.job_type!="null")?string(dl.job_type,"") }</p>
	       <p>${(dl.birthday!="null"&&dl.birthday!="0岁")?string(dl.birthday,"")}    ${dl.certificate_type}   ${(tmp_salary!="")?string(tmp_salary,"面议")}    ${(dl.employment_type!="null")?string(dl.employment_type,"")}</p>
	       <p>${(dl.major_name!="null")?string(dl.major_name,"")}    ${(dl.school_name!="null")?string(dl.school_name,"")}</p>
	      </span>
	      </a>
	      <span class="studentinfo_r_have2">
	      <#if dl.head_img??  && dl.head_img!="">
	       <img src="${dl.head_img}" alt="用户头像" alt="用户头像"  onerror="javascript:this.src='${base}/resources/images/usertx.png'"class="uertxhave"/>
	       <#else>
	       <img src="${base}/resources/images/usertx.png"  alt="用户头像" class="uertxhave"/>
	       </#if>
	       <#assign itps=dl.internships?number>
	       <#if itps==1>
	       <p class="img_circle"> 有工作经验</p>
	       </#if>
	      </span>
	     </div>
	     
	     </#list>
	     </#if>	
	    <#if dpage gt 1>
	    <button type="submit" class="pagebtn pagebtnother dprew">上一页</button>
	    <#else>
	    <!-- <button type="submit" class="pagebtn">上一页</button>-->
	    </#if>
	    
	    <#if num3 lt 20>
	    <!-- <button type="submit" class="pagebtn">下一页</button>-->
	    <#else>
	    <button type="submit" class="pagebtn pagebtnother dnext">下一页</button>
	    </#if>
    <#else>
     	<div class="isnull" style="height: 90px;line-height: 90px;padding: 97px 400px;background-color: #f5f5f5;margin-top: 20px;">
            <p style="float:left"><img src="${base}/resources/images/tishi.png"></p>
            <span style="font-size: 16px;    margin-left: 40px;">该企业暂无下载简历</span>
    	</div>
    </#if>
    </h1>
  
  </div>
  <!--/.tabcon-->

</div> 
<!--/.studentinfo-->

 <!--清浮动-->
 <div style="clear:both"></div>

</div>
<!--/.contaniner-->
    

<!--footer-->
<#include "../common/bottom.ftl">
<!--/.footer--> 


<!--js-->

<!--加边框鼠标事件-->
 <script type="text/javascript">
 	$(function(){
 		
 		var tab_t = document.getElementById("tab_t");
       	var tab_t_li = tab_t.getElementsByTagName("li");
      	var tab_c = document.getElementById("tab_c");
        var tab_c_li = tab_c.getElementsByTagName("h1");
    	
    	//alert(tab_c_li.length);
        var len = tab_t_li.length;
        var i=0;
        
        for(i=0; i<len; i++){
          tab_t_li[i].index = i;
          tab_t_li[i].onmouseover = function(){
              for(i=0; i<len; i++){
                  tab_t_li[i].className = '';
                    tab_c_li[i].className = 'hide';
                }
                tab_t_li[this.index].className = 'act';
                tab_c_li[this.index].className = '';
            }
        }
        
        //收到简历下一页
		$(".rnext").click(function(){
			var page=parseInt('${rpage}')+1;
			window.location="${base}/resume/?rpage="+page;
		})
		
		//收到简历上一页
		$(".rprew").click(function(){
			var page=parseInt('${rpage}')-1;
			window.location="${base}/resume/?rpage="+page;
		})
        
        //收藏简历下一页
		$(".cnext").click(function(){
			var page=parseInt('${cpage}')+1;
			window.location="${base}/resume/?cpage="+page;
		})
		
		//收藏简历上一页
		$(".cprew").click(function(){
			var page=parseInt('${cpage}')-1;
			window.location="${base}/resume/?cpage="+page;
		})
		
		//下载简历下一页
		$(".dnext").click(function(){
			var page=parseInt('${dpage}')+1;
			window.location="${base}/resume/?dpage="+page;
		})
		
		//下载简历上一页
		$(".dprew").click(function(){
			var page=parseInt('${dpage}')-1;
			window.location="${base}/resume/?dpage="+page;
		})
 	});
 	
    function ShowBorder(studentinfotip) {
    	studentinfotip.style.border = "solid 1px #0089e9";
    };
    
    function HideBorder(studentinfotip){
    	studentinfotip.style.border = "solid 1px #e5e5e5";
    };
 </script>
<!--/.加边框鼠标事件-->
</body>
</html>